package com.woniu.orderservice.service;

import com.woniu.orderservice.entity.Orderinfos;
import com.woniu.orderservice.entity.Orders;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrdersService {

    Orders queryById(Integer id);

    List<Orders> queryAllByLimit(int offset, int limit);
    
    List<Orders> findAll();

    Orders insert(Orders orders);

    Orders update(Orders orders);

    boolean deleteById(Integer id);

    Orders queryAllById(Integer id);

    List<Orders> queryByUserId(Integer userId);

    Orders findOrderByOrderNo(String orderNo);

    List<Orderinfos> findOrderItems(Integer id);

    List<Orders> queryAllByUserId(Integer userId);
}
